#include <stdio.h>
int main()
{
	int n = 0;
	scanf("%d", &n);
	int t = 1+(n-1)*2;
	for ( int i = 0; i < n; i++ ) {
		for ( int j = 0; j < i; j++ ) {
			printf(" "); 
		}
		for ( int j = t; j >= 1; j-- ) {
			printf("%d", j);
		}
		t -= 2;
		printf("\n");
	}
	return 0;
}
